﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO.DAL;
using DAO.IDAL;
using NHibernate.Criterion;
namespace DAO.BLL {
	public partial class B_Manager_role
	{
		private readonly IManager_role dal = new D_Manager_role();
		public B_Manager_role()
		{}
		
		#region  Method
        public Domain.Manager_role Get(int id) 
        {
            return dal.Get(id);
        }

        public IList<Domain.Manager_role> GetList(int offset=1, int limit=10, List<Order> order = null) 
        {
            return dal.GetList(offset,limit,order);
        }

        public int GetCount(string role_name = "") 
        {
            return dal.GetCount(role_name);
        }

        public int Save(Domain.Manager_role model) 
        {
            return Convert.ToInt32(dal.Save(model));
        }

        public void Update(Domain.Manager_role model) 
        {
            dal.Update(model);
        }

        public void Delete(int id) 
        {
            dal.Delete(id);
        }
		#endregion
   
	}
}